gtk: Stop setting GDK_EXPOSURE_MASK on random widgets
authorAlexander Larsson <alexl@redhat.com>
Mon, 14 Sep 2015 08:56:13 +0000 (10:56 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 14 Sep 2015 09:01:13 +0000 (11:01 +0200)
commitd5f1754981129094afbe5d9c1d57e41599fad410
treef4284fa809bbc6b9902bdcbe013ede86ea7ab93e
parenteafedfbaf8e080a1e444f46cde082fb2734552f9
gtk: Stop setting GDK_EXPOSURE_MASK on random widgets

These days exposure happens only on the native windows (generally the
toplevel window) and is propagated down recursively. The expose event
is only useful for backwards compat, and in fact, for double buffered
widgets we totally ignore the event (and non-double buffering breaks
on wayland).

So, by not setting the mask we avoid emitting these events and then
later ignoring them.

We still keep it on eventbox, fixed and layout as these are used
in weird ways that want backwards compat.
24 files changed:
gtk/deprecated/gtkcolorsel.c
gtk/deprecated/gtkhandlebox.c
gtk/deprecated/gtkmisc.c
gtk/gtkcalendar.c
gtk/gtkflowbox.c
gtk/gtkglarea.c
gtk/gtkiconview.c
gtk/gtklistbox.c
gtk/gtkmagnifier.c
gtk/gtkmenu.c
gtk/gtkmenushell.c
gtk/gtknotebook.c
gtk/gtkoverlay.c
gtk/gtkpaned.c
gtk/gtkpopover.c
gtk/gtkrevealer.c
gtk/gtkscrolledwindow.c
gtk/gtkspinbutton.c
gtk/gtkstack.c
gtk/gtktextview.c
gtk/gtktoolitemgroup.c
gtk/gtktoolpalette.c
gtk/gtktreeview.c
gtk/gtkviewport.c